package com.alex.statistics.pojo.request.timeSeriesAnalysis;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "多项式拟合请求参数")
public class PolynomialFitRequest {

    @Schema(description = "待分析的 x 数据集合，每个维度的数据为一个列表，格式为 [[x0, x1, ...], [x0', x1', ...]]", required = true, example = "[1.0, 2.0, 3.0]")
    private  List<Double> x;  // x 数据集合，支持多维

    @Schema(description = "待分析的 y 数据集合，格式为 [y0, y1, y2]", required = true, example = "[2.0, 3.0, 5.0]")
    private List<Double> y;  // y 数据集合

    @Schema(description = "多项式的阶数", required = true, example = "2")
    private int degree;  // 多项式阶数
}
